﻿@{
    ViewBag.Title = "Start";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Scripts {    
    <script src="@Url.Content("~/Scripts/Home/start.js")" type="text/javascript"></script>

}

<h2>Välkommen @Html.Raw(ViewBag.user)</h2>

<form method="post" action="/Home/ShowGameSession">
<input type="submit" value="Nytt Spel" />
</form>

<h2>Aktiva spel:</h2> 

<ul> <!-- Får alla "aktiva" spel och presenterar dessa i en lista -->
    @foreach (var GameSession in ViewBag.GameSessions) 
    {
        <li>ID: @GameSession.GameSessionId</li> //Länk till spelsessionen
    }
</ul>